<div class="container">
  <h1>replace_html_tags()</h1>
  <p class="signature">function replace_html_tags(string $content, array $specifications): string </p>
  <h2>Description</h2>
  <div class="description">
    <p>Converts HTML content based on given specifications.</p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
        <th>Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>$content</td>
        <td>string</td>
        <td>The original HTML content to be converted.</td>
        <td>N/A</td>
      </tr>
      <tr>
        <td>$specifications</td>
        <td>array</td>
        <td>An array containing specifications for conversion, including opening and closing strings.</td>
        <td>N/A</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <table>
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>string</td>
        <td>The modified HTML content.</td>
      </tr>
    </tbody>
  </table>
  <h2>Example Usage</h2>
  <div class="example">
    <pre>
$html_content = "&lt;div class='content'&gt;&lt;p&gt;This is some content.&lt;/p&gt;&lt;/div&gt;";
$specifications = [
    'opening_string_before' => '&lt;p&gt;',
    'close_string_before' => '&lt;/p&gt;',
    'opening_string_after' => '&lt;div&gt;',
    'close_string_after' => '&lt;/div&gt;'
];
$modified_content = replace_html_tags($html_content, $specifications);
echo $modified_content;
// Output: &lt;div class='content'&gt;&lt;div&gt;This is some content.&lt;/div&gt;&lt;/div&gt;</pre>
  </div>
</div>
